package com.zzy.database.service;

import com.zzy.database.pojo.Loan;
import com.zzy.database.pojo.LoanPayment;

import java.math.BigDecimal;
import java.util.List;

public interface LoanService {
    // 申请贷款
    boolean applyLoan(Loan loan);

    // 还款
    boolean makePayment(LoanPayment loanPayment);

    // 查询贷款状态,包括这个人的所有贷款记录
    List<Loan> getLoanStatus(String loanId);
    List<LoanPayment> getLoanPayStatus(String loanpayid);
}

